package com.edu.oracle.pojo;

import java.sql.Date;

/**
 * 实体类:entity，JavaBean
 * entity包存放的实体类未必是JavaBean
 *
 * 1.有属性
 * 2.有属性的方法：getter and setter
 * 3.可以序列化和反序列化
 * 4.无参数构造参数
 *
 * 一般的pojo实体类是JavaBean，实体类entity不一定是JavaBean
 */
public class Student {


    // 1.有属性
    private String sno;//学号
    private String sname;//姓名
    private String ssex;//性别
    private String sclass;//班级号
    private Date sbirthday;//出生日期  import java.sql.Date;  until
    private String speciality;//特长，专业
    private int tc;//总分

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    public String getSclass() {
        return sclass;
    }

    public void setSclass(String sclass) {
        this.sclass = sclass;
    }

    public Date getSbirthday() {
        return sbirthday;
    }

    public void setSbirthday(Date sbirthday) {
        this.sbirthday = sbirthday;
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    public int getTc() {
        return tc;
    }

    public void setTc(int tc) {
        this.tc = tc;
    }
}
